<form class="layui-form layui-form-pane" id="FormBizConsumptionRecordAdd" lay-filter="FormBizConsumptionRecordAdd" action="/biz/consumption/record/add">
    <div class="layui-row p-l-sm m-b-xl">
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input('text','发生时间(*)','favorTime','layui-col-md6',32,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','记录类型(*)','consuType','layui-col-md6',128,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','收入','income','layui-col-md6',32,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','支出','expenditure','layui-col-md6',32,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','标签','tags','layui-col-md12',128,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','消费备注','consuDesc','layui-col-md12',512,'','')"></div>
        </div>
    </div>
</form>
<script>
    layui.use(["jquery", "laydate", 'form'], function () {
        let laydate = layui.laydate;
        let form = layui.form;
        let $ = layui.jquery;
        form.render();
        laydate.render({
            elem: "#FormBizConsumptionRecordAdd .layui-input[name=favorTime]",
            ready: function () {
                $(".laydate-month-list").dblclick(function () {
                    $(".laydate-btns-confirm").click();
                });
            }
        });
    });
</script>